<template>
    <el-button
        v-for="item in source"
        :key="item.key"
        v-bind="item"
        class="base-toolbar__button"
        >{{ item.label }}</el-button
    >
</template>

<script setup>
defineOptions({
    inheritAttrs: false,
});
const props = defineProps({
    source: {
        type: Array,
        default() {
            return [];
        },
    },
});
</script>

<style>
.base-toolbar__button {
    margin-bottom: 4px;
}
.base-toolbar__button + .base-toolbar__button {
    margin-left: 4px;
}
</style>
